package com.wjw.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.wjw.entity.Admin;
import com.wjw.mapper.AdminMapper;
import com.wjw.service.IAdminService;

/**
*
* Admin 表数据服务层接口实现类
*
*/
@Service
public class AdminServiceImpl extends ServiceImpl<AdminMapper,Admin> implements IAdminService{

	@Override
	public Admin login(String adminName, String adminPassword) {
		// TODO Auto-generated method stub
		return this.selectOne(new EntityWrapper<Admin>().eq("adminName", adminName).eq("adminPassword", adminPassword));
	}


}
